﻿using System;
using System.Windows;

namespace Bildschirmpause {
    /// <summary>
    /// Interaction logic for AboutWindow.xaml
    /// </summary>
    public partial class AboutWindow : Window {
        public AboutWindow() {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
        	this.Close();
        }

        private void Border_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
        	this.DragMove();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e) {
            if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed) {
                Version ver = System.Deployment.Application.ApplicationDeployment.CurrentDeployment.CurrentVersion;
                VersionLabel.Content = string.Format("Version {0}.{1}.{2}.{3}", ver.Major, ver.Minor, ver.Build, ver.Revision);
            }
        }
    }
}
